package awesomeTask

func GetListByKey(list []map[string]interface{}, key string) []interface{} {
	res := make([]interface{}, 0)
	for _, item := range list {
		res = append(res, item[key])
	}
	return res
}
